
define([
	'vue',
	'config',
	'common',
	'moment'
	],function(Vue,config,utils,moment){
	'use strict';

	var expensesRecord_revokedView=new Vue({
		el:'#app',
		data:{
			id:'',
			items:''
		},
		filters:{
			moment:function(date){
				var Date = moment(date*1000).format('YYYY-MM-DD');
				var arr = Date.split('-');
				return arr[1]+'-'+arr[2];
			}
		},
		created:function(){
			utils.userToken();

			var _this = this;
			_this.id = utils.getQueryVariable('id');
			utils.ajax(utils.getWebUrl('declaration/get'),{
				id: _this.id
			},'POST',function(res){
				console.log(res)
				_this.items = res.data;
			})
		},
		methods:{
			
		}
	})

	return expensesRecord_revokedView;
});